#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "ximage.h"

#include "xbitmap.h"
#include "cvisionmatterelementset.h"

#include "thesct.h"

#include <QCloseEvent>
#include <QMainWindow>

#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QTextEdit>
#include <QLabel>
#include <QListView>
#include <QLineEdit>

Q_DECLARE_METATYPE(PCTSTHPSV);

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_ac_about_triggered();

    void on_ac_open_triggered();

    void closeEvent(QCloseEvent *event);
    void on_ac_exit_triggered();
    void on_ac_test_triggered();

private:
    Ui::MainWindow *ui;
    QHBoxLayout * m_hboxLayout;
    QVBoxLayout * m_vbl_lst;
    QVBoxLayout * m_vbl_src;
    QVBoxLayout * m_vbl_ret;
    XImage   * m_img_src;
    XImage   * m_img_ret;
    QListView *m_list_view;
    QStandardItemModel *m_lvmodel;
    QLineEdit *m_ln_min_number;
    QPushButton *m_btn_ok;
    int m_i_min_number;
private slots:
     void LVItemClicked(QModelIndex index);
     void Filtrate();
};

#endif // MAINWINDOW_H
